/*    */ package eos.moe.dragoncore.mixins;
/*    */ 
/*    */ import eos.moe.dragoncore.dha;
/*    */ import eos.moe.dragoncore.nm;
/*    */ import eos.moe.dragoncore.pl;
/*    */ import eos.moe.dragoncore.vh;
/*    */ import eos.moe.dragoncore.wn;
/*    */ import java.io.IOException;
/*    */ import net.minecraft.client.gui.GuiChat;
/*    */ import net.minecraft.client.gui.GuiScreen;
/*    */ import org.lwjgl.input.Keyboard;
/*    */ import org.lwjgl.input.Mouse;
/*    */ import org.spongepowered.asm.mixin.Mixin;
/*    */ import org.spongepowered.asm.mixin.injection.At;
/*    */ import org.spongepowered.asm.mixin.injection.Inject;
/*    */ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ @Mixin({GuiChat.class})
/*    */ public class MixinGuiChat
/*    */   extends GuiScreen
/*    */ {
/*    */   @Inject(method = {"handleMouseInput"}, at = {@At("HEAD")}, cancellable = true)
/*    */   public void handleMouseInput(CallbackInfo callbackInfo) throws IOException {
/* 43 */     int i = Mouse.getEventDWheel();
/* 44 */     if (i != 0 && dha.t.v()) {
/* 45 */       callbackInfo.cancel();
/*    */     }
/*    */     try {
/* 48 */       for (vh vh : pl.i.values()) {
/* 49 */         if (vh.handleMouseInput_()) {
/* 50 */           callbackInfo.cancel();
/*    */         }
/*    */       } 
/* 53 */     } catch (IOException iOException) {
/* 54 */       iOException.printStackTrace();
/*    */     } 
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\mixins\MixinGuiChat.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */